<?php
namespace Gotcha\Core\Components\Debugging\Handlers {
    class ErrorException {
        private function errorExceptionHandler($errorCode, $errorMsg, $errorFile, $errorLine) {
            throw new \ErrorException($errorMsg, $errorCode, 0, $errorFile, $errorLine);
        }

        public function setErrorExceptionHandler()
        {
            set_error_handler(array($this, 'errorExceptionHandler'));
        }
    }
}

